<?php
/**
 * 
 * @author bqd
 *
 */
class ExtendedPaginationBehavior extends ModelBehavior {
	var $options = array();
    function setup(&$model, $settings = array()) {
        $default = array(
			'lft'		=> 'lft',
			'rght'		=> 'rght',
			'parent'	=> 'parent_id',
		);

		if (!isset($this->__settings[$model->alias])) {
			$this->__settings[$model->alias] = $default;
		}
		
		$this->__settings[$model->alias] = am($this->__settings[$model->alias], $settings);
    }
	
}
?>